﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace ParserGenerator.ParserConstruction
{
    [Serializable]
    public sealed class ParserAutomatonDominantContributions : ReadOnlyCollection<ParserAutomatonContribution>
    {
        internal ParserAutomatonDominantContributions()
            : base(new List<ParserAutomatonContribution>())
        {
        }

        internal void Add(ParserAutomatonContribution contribution)
        {
            Items.Add(contribution);
        }
    }
}
